package com.topscore.uke.mvp.contractors;

import com.topscore.uke.mvp.BaseContractor;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.request.PostAddressRequest;
import com.topscore.uke.network.request.UpdateAddressRequest;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClient;
import com.topscore.uke.network.retrofit.NetClientPostJson;

/**
 * Created by 71468 on 2017/10/19.
 */

public interface CreateOrUpdateAddressContractor extends BaseContractor {
    interface Presenter {
        void createAddress(PostAddressRequest request);

        void updateAddress(UpdateAddressRequest request);
    }

    interface Model {
        ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);

        void postAddress(UpdateAddressRequest request);
    }

    interface View extends BaseView {
        void onPostAddressSuccess();
    }

    interface Listener extends BaseHttpListener {
        void onPostSuccess();
    }
}
